extends Node
# res://scripts/player/State.gd
class_name State

# 所属状态机（用于触发状态切换）
var state_machine: StateMachine
var owner_node: CharacterBody2D
var anim_tree: AnimationTree
# 进入状态时调用
func enter() -> void:
	anim_tree = owner_node.get_node("AnimationTree")

# 退出状态时调用
func exit() -> void:
	pass

# 每帧更新
func update(delta: float) -> void:
	pass
